/*******************************************************************************
 * Copyright (c) 2005, 2014 springside.github.io
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 *******************************************************************************/
package com.ly.ocw.web;

import javax.servlet.http.HttpServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.ly.ocw.service.weixin.WeixinConf;

/**
 * 管理员管理用户的Controller.
 * 
 * @author peter
 */
@Controller
@RequestMapping(value = "/MyCenter")
public class MyCenterController {

	private static Logger logger = LoggerFactory.getLogger(MyCenterController.class);


	@Autowired
	private WeixinConf weixinConf;

	/**
	 * 进入个人中心页面
	 * 
	 * @param response
	 * @param model
	 * @return
	 */
	@RequestMapping(method = RequestMethod.GET)
	public String getMyCenterPage(HttpServletResponse response, Model model) {
		logger.info("MyCenter");

		model.addAttribute("weixinUserInfo", "testUserInfo");
		return "MyCenter";
	}


}
